package com.team.bootmq.controller;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.team.bootmq.entity.OceanFreightRate;
import com.team.bootmq.service.IOceanFreightRateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 英国航线
 *
 * @author xd
 * @since 2024-04-25
 */
@RestController
@RequestMapping("/drewry")
public class OceanFreightRateController {
    @Autowired
    private IOceanFreightRateService iOceanFreightRateService;

    /**
     * 分页查询
     *
     * @param page
     * @return
     */
    @PostMapping("/page")
    public List<OceanFreightRate> page(){
        List<OceanFreightRate> list = iOceanFreightRateService.list();
        return list;
    }
}

